package com.kotlinvben.exception

class MenuNotFoundException(id: Long) : BusinessException(
    BusinessErrorCode.NOT_FOUND,
    "菜单不存在: $id"
)

class MenuNameExistsException(name: String) : BusinessException(
    BusinessErrorCode.BAD_REQUEST,
    "菜单名称已存在: $name"
)

class MenuParentNotFoundException(parentId: Long) : BusinessException(
    BusinessErrorCode.BAD_REQUEST,
    "父菜单不存在: $parentId"
)

class MenuCircularReferenceException(id: Long, parentId: Long) : BusinessException(
    BusinessErrorCode.BAD_REQUEST,
    "菜单不能设置自己为父菜单: $id -> $parentId"
) 